﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="User.aspx.cs" Inherits="ecommerceSample.ViewProfile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1 {
            height: 33px;
        }
        .style2
        {
            width: 172px;
        }
        .style3
        {
            height: 33px;
            width: 172px;
        }
        .style4
        {
            height: 33px;
            width: 93px;
        }
        .style5
        {
            width: 93px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table>
<tr>
    <td class="style2">
        <asp:Label ID="lblUserProfile" runat="server" Text="Perfil Usuario"></asp:Label>
    </td>
</tr>
<tr>
    <td class="style2">     
        <asp:HyperLink ID="hlUserConfig" runat="server" 
            NavigateUrl="~/ConfigProfile.aspx">Editar Perfil</asp:HyperLink>
    </td>
</tr>
<tr>
    <td class="style2">
        <asp:Image ID="Image1" src="Images/índice.jpg" runat="server" />
    </td>
</tr>
<tr>
    <td class="style2"></td>
    <td align="left">
        <asp:Label ID="lblUser1" runat="server" Text="Nombre Usuario"></asp:Label>
    </td>
    <td class="style5">
        <asp:Label ID="lblUser" runat="server" Visible="False"></asp:Label>
    </td>
    <td></td>
    <td></td>
</tr>
<tr>
    <td class="style3">
        <asp:SqlDataSource ID="SqlDataSource4" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ecommerceSample %>" 
            
            SelectCommand="SELECT aspnet_Users.UserName, aspnet_Membership.Email, aspnet_Membership.Comment, aspnet_Membership.CreateDate, aspnet_Membership.LastLoginDate FROM aspnet_Membership INNER JOIN aspnet_Users ON aspnet_Membership.UserId = aspnet_Users.UserId AND aspnet_Membership.UserId = aspnet_Users.UserId WHERE (aspnet_Users.UserName = @user )">
            <SelectParameters>
                <asp:ControlParameter ControlID="lblUser" Name="user" PropertyName="Text" />
            </SelectParameters>
        </asp:SqlDataSource>
    </td>
    <td class="style1" align="left">
        <asp:GridView ID="GridView4" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource4" 
            >
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <table>
                        <tr>
                        <td> 
                            <asp:Label ID="Label1" runat="server" Text="Nombre: " Font-Bold="True"></asp:Label></td>
                        <td><%#Eval("UserName") %> <br /></td>
                        </tr>
                        <tr>
                        <td><asp:Label ID="Label2" runat="server" Text="Email: " Font-Bold="True"></asp:Label></td>
                        <td><%#Eval("Email") %></td>
                        </tr>
                        <tr>
                            <td><asp:Label ID="Label3" runat="server" Text="Dia de creacion: " Font-Bold="True"></asp:Label></td>
                            <td><%#Eval("CreateDate")%></td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label4" runat="server" Text="Ultima conexi'on: " Font-Bold="True"></asp:Label>
                            </td>
                            <td>
                               <%# Eval("LastLoginDate") %>
                            
                            </td>
                        </tr>
                        </table>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </td>
    <td class="style4">
        &nbsp;</td>
    <td class="style1">
        &nbsp;</td>
    <td class="style1">
        &nbsp;</td>
</tr>
<tr>
    <td class="style2" align="left"></td>
    <td align="left">
        &nbsp;</td>
    <td class="style5" align="left">
        &nbsp;</td>
    <td></td>
    <td></td>
</tr>
<tr>
    <td class="style2"></td>
    <td align="left">
        &nbsp;</td>
    <td class="style5"></td>
    <td></td>
    <td></td>
</tr>
<tr>
    <td class="style2" align="left"></td>
    <td align="left">
        &nbsp;</td>
    <td class="style5"></td>
    <td></td>
    <td></td>
</tr>
<tr>
    <td class="style2" align="left"></td>
    <td align="left">
        &nbsp;</td>
    <td class="style5"></td>
    <td></td>
    <td></td>
</tr>

<tr>
    <td class="style2"></td>
    <td align="left">
        &nbsp;</td>
    <td class="style5"></td>
    <td></td>
    <td></td>
</tr>
<tr>
    <td class="style2"></td>
    <td align="left">
        &nbsp;</td>
    <td class="style5"></td>
    <td></td>
    <td></td>
</tr>
<tr>
    <td class="style2"></td>
    <td align="left">
        &nbsp;</td>
    <td class="style5"></td>
    <td></td>
    <td></td>
</tr>
<tr>
    <td class="style2"></td>
    <td align="left">
        &nbsp;</td>
    <td class="style5"></td>
    <td></td>
    <td></td>
</tr>
<tr>
    <td class="style2"></td>
    <td align="left">
        &nbsp;</td>
    <td class="style5"></td>
    <td></td>
    <td></td>
</tr>
<tr>
    <td class="style2"></td>
    <td align="left">
        &nbsp;</td>
    <td class="style5"></td>
    <td></td>
    <td></td>
</tr>
<tr>
    <td class="style2"></td>
    <td align="left">
        &nbsp;</td>
    <td class="style5"></td>
    <td></td>
    <td></td>
</tr>
<tr>
    <td class="style2"></td>
    <td align="left">
        &nbsp;</td>
    <td class="style5"></td>
    <td></td>
    <td></td>
</tr>
<tr>
    <td class="style2"></td>
    <td align="left">
        &nbsp;</td>
    <td class="style5"></td>
    <td></td>
    <td></td>
</tr>

</table>
</asp:Content>
